package com.example.mysecurity.pojo;

import java.io.Serializable;

public class Menu implements Serializable {
    /**
     * 菜单编号
     */
    private Long id;
    /**
     * 菜单名称
     */
    private String name;
    /**
     * 菜单地址
     */
    private String url;

    /**
     * 菜单权限标识
     */
    private String permission;

    private static final long serialVersionUID = 1L;

    public Menu(Long id, String name, String url, String permission) {
        this.id = id;
        this.name = name;
        this.url = url;
        this.permission = permission;
    }

    public Menu() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", permission='" + permission + '\'' +
                '}';
    }
}
